
package org.xteam.sled.ast;

import org.xteam.parser.runtime.Span;

public class LabelPattern extends AbstractPattern {
	
	
	protected Ident ident;
	protected AbstractPattern expr;
	
	public LabelPattern(Span span, Ident ident,AbstractPattern expr) {
		super(span);
		this.ident = ident;
		this.expr = expr;
	}
	
	
	public Ident getIdent() {
		return ident;
	}
	
	public void setIdent(Ident ident) {
		this.ident = ident;
	}
	
	public AbstractPattern getExpr() {
		return expr;
	}
	
	public void setExpr(AbstractPattern expr) {
		this.expr = expr;
	}
	

	public void visit(ISledVisitor visitor) {
		visitor.visitLabelPattern(this);
	}
}
